package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @BelongsProject: tensquare_parent
 * @BelongsPackage: com.tensquare.search.dao
 * @Author: yang
 * @CreateTime: 2019-03-07 13:23
 * @Description: ${Description}
 */
public interface ArticleDao extends ElasticsearchRepository<Article,String> {

   public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
